import request from '@/utils/request'

//流程定义
export function fetchList() {
    return request({
        url: '/activiti/startProcess',
        method: 'get',


    })
}
//查询个人流程节点
export function taskQuery(user, username) {
    return request({
        url: '/activiti/taskQuery',
        method: 'get',
        params: { user, username }

    })
}

//完成个人流程节点
export function mycomplete(daibanid, username) {
    return request({
        url: '/activiti/mycomplete',
        method: 'get',
        params: { daibanid, username }

    })
}

//完成颁奖流程节点
export function exclusivemycomplete(daibanid, num, username) {
    return request({
        url: '/exclusiveactiviti/exclusivemycomplete',
        method: 'get',
        params: { daibanid, num, username }

    })
}

//完成名次排名流程
export function parallermycomplete(daibanid, mingci, username) {
    return request({
        url: '/paralleractiviti/parallermycomplete',
        method: 'get',
        params: { daibanid, mingci, username }

    })
}

//查看个人申请
export function historicQuery(username) {
    return request({
        url: '/activiti/hisQuery',
        method: 'get',
        params: { username },

    })
}
//流程定义
export function definition(zuopinid, username) {
    return request({
        url: '/activiti/definition',
        method: 'get',
        params: { zuopinid, username },

    })
}
//排他流程定义
export function exclusivedefinition(zuopinid, username) {
    return request({
        url: '/exclusiveactiviti/exclusivedefinition',
        method: 'get',
        params: { zuopinid, username },

    })
}

//并行流程定义
export function parallerdefinition(zuopinid, username) {
    return request({
        url: '/paralleractiviti/parallerdefinition',
        method: 'get',
        params: { zuopinid, username },

    })
}

//审批意见驳回
export function deleteComplete(daibanid, Suggestions) {
    return request({
        url: '/activiti/deleteComplete',
        method: 'get',
        params: { daibanid, Suggestions }

    })
}

//我的已办
export function queryactinst(data) {
    return request({
        url: '/activiti/hisQuery',
        method: 'get',
        data

    })
}